import { requestClient } from '#/api/request'
import type { ApiPaginationParams } from '#types/utils'
import type { OperationLogListParams, OperationLogListResult } from './model/logModel'

// 日志管理
export default class LogApi {
    static get inst() {
        return LogApi._inst || (LogApi._inst = new LogApi())
    }
    private static _inst: LogApi
    /**
     * 短信模版-模版列表
     * GET /smsTemplate/index
     * 接口ID：220545390
     * 接口地址：https://app.apifox.com/link/project/5166966/apis/api-220545390
     */
    getPageList(params: ApiPaginationParams<OperationLogListParams>) {
        return requestClient.get<OperationLogListResult>('/operationLog/index', {
            params
        })
    }
}
